package com.anyisn.anyflickr.modules.PhotosSlide
{
	import org.puremvc.as3.multicore.patterns.facade.Facade;
	
	import com.anyisn.anyflickr.modules.PhotosSlide.controller.StartupCommand;
	
	public class PhotosSlideModuleFacade extends Facade
	{
		public static const STARTUP:String						= 'startup';
		public static const GET_PHOTOS_SLIDE_WINDOW:String		= 'getPhotosSlideWindow';
		public static const EXPORT_PHOTOS_SLIDE_WINDOW:String	= 'exportPhotosSlideWindow';
		
		public function PhotosSlideModuleFacade(key:String)
		{
			super(key);
		}
		
		public static function getInstance(key:String):PhotosSlideModuleFacade {
			if(instanceMap[key] == null) 
				instanceMap[key] = new PhotosSlideModuleFacade(key);
			return instanceMap[key] as PhotosSlideModuleFacade;
		}
		
		override protected function initializeController() : void {
			super.initializeController();
			registerCommand(STARTUP, StartupCommand);
		}
		
		public function startup(app:PhotosSlideModule):void {
			sendNotification(STARTUP, app);
		}
	}
}